package cn.hx.mall.permissions.entity.page;

public class Page {
    private Integer page=1;//当前页
    private Integer limit=10;//每页条数
    private Integer count;//数据总条数
    private Integer cntpage;//总页数
    private String search;//搜索内容

    @Override
    public String toString() {
        return "Page{" +
                "page=" + page +
                ", limit=" + limit +
                ", count=" + count +
                ", cntpage=" + cntpage +
                ", search='" + search + '\'' +
                '}';
    }

    public Page() {
    }

    public Page(Integer page, Integer limit, Integer count, Integer cntpage, String search) {
        this.page = page;
        this.limit = limit;
        this.count = count;
        this.cntpage = cntpage;
        this.search = search;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getCntpage() {
        return cntpage;
    }

    public void setCntpage(Integer cntpage) {
        this.cntpage = cntpage;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }
}
